<!DOCTYPE html>
<html>
<!--源例子：https://bl.ocks.org/mbostock/4063423-->
<!--使用csv而不是json-未测试http://www.it1352.com/585420.html-->
	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" src="d3.v3.js"></script>
		<title>sunburst</title>
		<style>
			body {
				font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
				margin: auto;
				position: relative;
				width: 960px;
			}
			
			form {
				position: absolute;
				right: 10px;
				top: 10px;
			}
		</style>
	</head>

	<body>
		<form>
			<label><input type="radio" name="mode" value="size">Size</label> <!--radio-选择，和紧邻的同name单选-->
			<label><input type="radio" name="mode" value="count" checked>Count</label> <!--checked 默认-->
		</form>
		<div id="sunburst"></div>
		<script type="text/javascript" src="sunburst.js" ></script>
		
	</body>

</html>